package javaStudy.代码块;

public class B extends A{
    private Integer b=100;
    static {
        System.out.println("B的静态代码块，B="+a);
    }
    {
        a=200;
        System.out.println("B的实例代码块a="+a);
    }
    public B(int b){
        this.b=b;
        System.out.println("B的构造方法，b="+b);
    }
    public void print(){
        System.out.println("a="+a);
        System.out.println("b="+b);
    }
}
